package data.app
{
	public class DataController
	{
		private var _dataSend:DataSend;
		private var _dataReceive:DataReceive;
		
		public function DataController()
		{
			_dataSend=new DataSend();
			_dataReceive=new DataReceive();
		}
		
		private static var _instance:DataController;
		public static function get Instance() : DataController
		{
			if(_instance == null)
			{
				_instance = new DataController();
			}
			return _instance;
		}
		
		/**
		 * 数据发送对象
		 */		
		public function get dataSend():DataSend
		{
			return _dataSend;
		}
		
		/**
		 *数据返回对象
		 */		
		public function get dataReceive():DataReceive
		{
			return _dataReceive;
		}
	}
}